﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SymWorld.Model
{
    public abstract class WorldSimulator
    {
        protected WorldState _currentWorldState = new WorldState();
        private double _time = 0d;

        public WorldSimulator()
        {
            InitializeWorldState();
        }

        public WorldState CurrentWorldState
        {
            get { return _currentWorldState; }
        }
        public double Time
        {
            get { return _time; }
        }

        protected abstract void InitializeWorldState();
        public void CalculateNewWorldState(double delay)
        {
            _currentWorldState = _currentWorldState.CreateNextWorldState(delay);
            _time += delay;
        }
        
    }
}
